package com.tntsl.common.utils;

import com.google.gson.Gson;

/**
 * @author: LvSongnian
 * @date: 2019/8/14 下午 5:27
 */
public class GsonUtil {

    private GsonUtil() {
    }

    private static final Gson GSON = new Gson();

    /**
     * 对象转JSON字符串
     *
     * @param object
     * @return
     */
    public static String toJson(Object object) {
        return GSON.toJson(object);
    }
}
